package com.jy.adscm.operation.aftersales.bean;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * <p>
 * 原料出库记录
 * </p>
 *
 * @author zyl
 * @since 2019-08-12
 */
public class ShylMaterialdetail implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "ID", type = IdType.AUTO)
    private Integer id;
    private String tid;
    private String pid;
    private String mid;
    private String pcode;
    private String mcode;
    private String name;
    @TableField(exist = false)
    private String nameName;
    private String batchnums;
    private String typenums;
    private String unit;
    private Date outstoragetime;
    private String useperson;
    @TableField(exist = false)
    private String usepersonName;
    private String code;
    private Double usenums;
    private Date outstorageaddtime;
    private String materialstate;
    private Integer isrepair;
    /**
     * 会审(1需要 0不需要)
     */
    @TableField("isCame")
    private Integer isCame;
    /**
     * 处理结果 (1返回继续使用，0返回给供应商，-1直接报废）
     */
    private Integer result;
    /**
     * 是否需要（0不需要，1需要）
     */
    @TableField("isNeedBuy")
    private Integer isNeedBuy;
    private String creator;
    @TableField("creaeTime")
    private Date creaeTime;

    public String getNameName() {
        return nameName;
    }

    public void setNameName(String nameName) {
        this.nameName = nameName;
    }

    public String getUsepersonName() {
        return usepersonName;
    }

    public void setUsepersonName(String usepersonName) {
        this.usepersonName = usepersonName;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTid() {
        return tid;
    }

    public void setTid(String tid) {
        this.tid = tid;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getMid() {
        return mid;
    }

    public void setMid(String mid) {
        this.mid = mid;
    }

    public String getPcode() {
        return pcode;
    }

    public void setPcode(String pcode) {
        this.pcode = pcode;
    }

    public String getMcode() {
        return mcode;
    }

    public void setMcode(String mcode) {
        this.mcode = mcode;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getBatchnums() {
        return batchnums;
    }

    public void setBatchnums(String batchnums) {
        this.batchnums = batchnums;
    }

    public String getTypenums() {
        return typenums;
    }

    public void setTypenums(String typenums) {
        this.typenums = typenums;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getOutstoragetime() {
        return outstoragetime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setOutstoragetime(Date outstoragetime) {
        this.outstoragetime = outstoragetime;
    }

    public String getUseperson() {
        return useperson;
    }

    public void setUseperson(String useperson) {
        this.useperson = useperson;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Double getUsenums() {
        return usenums;
    }

    public void setUsenums(Double usenums) {
        this.usenums = usenums;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getOutstorageaddtime() {
        return outstorageaddtime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setOutstorageaddtime(Date outstorageaddtime) {
        this.outstorageaddtime = outstorageaddtime;
    }

    public String getMaterialstate() {
        return materialstate;
    }

    public void setMaterialstate(String materialstate) {
        this.materialstate = materialstate;
    }

    public Integer getIsrepair() {
        return isrepair;
    }

    public void setIsrepair(Integer isrepair) {
        this.isrepair = isrepair;
    }

    public Integer getIsCame() {
        return isCame;
    }

    public void setIsCame(Integer isCame) {
        this.isCame = isCame;
    }

    public Integer getResult() {
        return result;
    }

    public void setResult(Integer result) {
        this.result = result;
    }

    public Integer getIsNeedBuy() {
        return isNeedBuy;
    }

    public void setIsNeedBuy(Integer isNeedBuy) {
        this.isNeedBuy = isNeedBuy;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getCreaeTime() {
        return creaeTime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setCreaeTime(Date creaeTime) {
        this.creaeTime = creaeTime;
    }

    @Override
    public String toString() {
        return "ShylMaterialdetail{" +
        "id=" + id +
        ", tid=" + tid +
        ", pid=" + pid +
        ", mid=" + mid +
        ", pcode=" + pcode +
        ", mcode=" + mcode +
        ", name=" + name +
        ", batchnums=" + batchnums +
        ", typenums=" + typenums +
        ", unit=" + unit +
        ", outstoragetime=" + outstoragetime +
        ", useperson=" + useperson +
        ", code=" + code +
        ", usenums=" + usenums +
        ", outstorageaddtime=" + outstorageaddtime +
        ", materialstate=" + materialstate +
        ", isrepair=" + isrepair +
        ", isCame=" + isCame +
        ", result=" + result +
        ", isNeedBuy=" + isNeedBuy +
        ", creator=" + creator +
        ", creaeTime=" + creaeTime +
        "}";
    }
}
